class KeywordSuggestionModel {
  String? keyword;
  int? restaurantId;
  String? type;

  KeywordSuggestionModel({this.keyword, this.restaurantId, this.type});

  factory KeywordSuggestionModel.fromJson(Map<String, dynamic> json) {
    return KeywordSuggestionModel(
      keyword: json['keyword'],
      restaurantId: json['restaurant_id'],
      type: json['type'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'keyword': keyword,
      'restaurant_id': restaurantId,
      'type': type,
    };
  }

  static List<KeywordSuggestionModel> fromJsonList(List<dynamic> jsonList) {
    return jsonList
        .map((json) => KeywordSuggestionModel.fromJson(json))
        .toList();
  }
}
